<template>
  <div class="clearfix">
    <div class="fl">
      <a :href="data[0] && data[0].href">
        <img v-lazy="data[0] && data[0].imgUrl" alt="">
      </a>
    </div>

    <div class="fr">
      <div class="ad-right-top">
        <a :href="data[1] && data[1].href">
          <img v-lazy="data[1] && data[1].imgUrl" alt="">
        </a>
      </div>
      <div class="clearfix">
        <div class="fl">
          <a :href="data[2] && data[2].href">
            <img v-lazy="data[2] && data[2].imgUrl" alt="">
          </a>
        </div>
        <div class="fr">
          <a :href="data[3] && data[3].href">
            <img v-lazy="data[3] && data[3].imgUrl" alt="">
          </a>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'ad-list',
    props: {
      data: {
        type: Array,
        default () {
          return []
        }
      }
    }
  }
</script>

<style lang="less" scoped>
  .ad-left {
    width: 615px;
    height: 450px;
  }

  .ad-right-top {
    width: 616px;
    height: 220px;
    margin-bottom: 10px;
  }

  .ad-right-bottom {
    width: 303px;
    height: 220px;
  }

  .ad-img {
    width: 100%;
    height: 100%;
  }
</style>
